using System.Collections;
using System.Runtime.CompilerServices;
using Nsb.Classes;
using jQueryApi;

namespace WhirliGig.Classes
{
    [IgnoreNamespace]
    public class ChompWindow : Actor
    {
        public ChompWindow()
        {
            Element = jQuery.FromHtml("<iframe class='ChompIFrame'/>")
                .CSS(
                    new Dictionary(
                        "width", "100%",
                        "height", 450,
                        "border", "none",
                        "margin", 0,
                        "padding", 0,
                        "border-top", "1px solid #AAA",
                        "border-bottom", "1px solid #AAA"
                        ))
                ;
        }

        public ChompWindow Src(string url)
        {
            Element.Attribute("src", url);
            return this;
        }
    }
}
